﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using web_api.Entities;
using web_api.Models;

namespace web_api.Profiles
{
  public class CompanyProfile:Profile
  {
    public CompanyProfile()
    {
      CreateMap<Company, CompanyDto>().ForMember(dest=>dest.CompanyName,opt=>opt.MapFrom(src=>src.Name));
      CreateMap<CompanyAddDto, Company>();
    }
  }
}
